//解析用户信息字符串
#include"../include/p.h"
int parsestr1(char *buf,char* id,char *usrname,char *pwd)
{
    while(*buf!=' ')
    {
        *id=*buf;
        id++;
        buf++;
    }
    *id='\0';

    buf++;
    while(*buf!=' ')
    {
        *usrname=*buf;
        usrname++;
        buf++;
    }
    *usrname='\0';
    buf++;
    while(*buf!='\0')
    {
        *pwd=*buf;
        pwd++;
        buf++;
    }
    *pwd='\0';
    //printf("buf==%s id==%s usrname==%s pwd==%s\n",buf,id,usrname,pwd );
    return 0;

}
